#!/bin/bash
echo "=== 开始驱逐work node集群 ==="

kubectl drain ubuntu02 --delete-emptydir-data --force --ignore-daemonsets
kubectl drain ubuntu03 --delete-emptydir-data --force --ignore-daemonsets
kubectl delete node ubuntu02
kubectl delete node ubuntu03

echo "=== 驱逐完成 ==="
